import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import store from './store'

const root = ReactDOM.createRoot(document.getElementById('root'))

root.render(<App />)

// 给store绑定状态更新的监听, 去更新组件
store.subscribe(() => root.render(<App />))


